package com.zyl.Ecs.common.domain.device.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* 
* @TableName ecs_room
*/

@Data
@ToString
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "ecs_room")
public class Room implements Serializable {

    /**
     *  主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty("id")
    private Integer id;

    /**
     *  机房名称
     */
    @JsonProperty("name")
    @TableField(value = "name")
    private String name;

    /**
     * 逻辑删除标志位
     */
    @JsonProperty("deleted")
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 数据创建时间
     */
    @JsonProperty("createTime")
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 数据最后修改时间
     */
    @JsonProperty("updateTime")
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;


}